import Vue from 'vue'

import "normalize.css/normalize.css"

import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import "@/styles/theme/index.css"
import '@/styles/font/font.css'

import { formatNumber, formatNumber2 } from "@/utils/index.js"

Vue.prototype.$formatNumber = formatNumber
Vue.prototype.$formatNumber2 = formatNumber2

import * as echarts from "echarts"
// 需要挂载到Vue原型上
Vue.prototype.$echarts = echarts


import App from './App.vue'
import router from './router/index'
import store from './store/index'


import "normalize.css/normalize.css"

import "@/styles/index.scss" // global css

import "@/permission"

import './icons'
// 注册全局组件
import registerComponents from './utils/registerComponents'
import globalMessageBox from "@/components/globalMessageBox"
Vue.component("globalMessageBox", globalMessageBox)
// 分页组件
import Pagination from "@/components/Pagination"
Vue.component("Pagination", Pagination)

Vue.use(ElementUI)

Vue.use(registerComponents)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
